package com.sheyu.common.exception;


import lombok.Getter;
import lombok.Setter;

/**
 * @author sheyu
 * @Desciption:
 * @date 2020/9/21 5:14 下午
 */
public class NoStockException extends RuntimeException{
    @Getter @Setter
    private Long skuId;

    public NoStockException(Long skuId){super("商品id："+skuId+"库存不足！"); }

    public NoStockException(String msg){
        super(msg);
    }
}
